package com.林子祺.CAT旅游系统.controller.login;

import com.林子祺.CAT旅游系统.dao.login.DeleteAccount;
import com.林子祺.CAT旅游系统.dao.login.PullAccount;
import com.林子祺.CAT旅游系统.entity.login.UserData;
import com.林子祺.CAT旅游系统.view.tour.admin.ActionComplete;
import com.林子祺.CAT旅游系统.view.tour.buy.BuyComplete;
import com.林子祺.CAT旅游系统.view.tour.buy.BuyError;

import static com.林子祺.CAT旅游系统.entity.login.UserData.ud;

public class DeleteAccount1 {

    public static void delete(int id){
        boolean done = DeleteAccount.deleteAccount(id);
        if(done)
            BuyComplete.comp();
        else
            BuyError.error();
    }

}
